package com.sun.util;

import java.io.*;
import java.util.Properties;

/**
 * create by Sun
 * 2018/7/31
 */
public class PropertiesUtil {
    public static String getProperties(String key) throws IOException {
        Properties properties=new Properties();
        File file=new File("ftp.properties");
        InputStream is=new FileInputStream(file);
        properties.load(is);
        String ip = properties.getProperty("ftp.server.ip");
        String ftpuser=properties.getProperty("ftp.server.user");
        String password=properties.getProperty("ftp.server.password");
        return ip;
    }

}
